<?php if (!defined('THINK_PATH')) exit();?>	<style>
		#metable{
			width:100%;
		}
		#metable th{
			text-align:center;
		}
		#metable td{
			text-align:center;
		}
	</style>
	<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>格林农场</title>

    <!-- Bootstrap core CSS -->
    <link href="/Green/Public/assets/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/Green/Public/assets/css/dashboard.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="/Green/Public/assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="/Green/Public/assets/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="/Green/index.php/index/index">首页</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#">欢迎使用</a></li>
            <li><a href="#"><?php echo $_SESSION['user']['name']; ?></a></li>
            <li><a href="/Green/index.php/Login/logout">注销</a></li>
            <li><a href="#">&nbsp</a></li>
          </ul>
        </div>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">		   
            <li><a href="<?php echo U('Users/index');?>">用户信息</a></li>
            <li><a href="<?php echo U('Dingdan/index');?>">我的订单</a></li>
			<li><a href="<?php echo U('Uaddress/index');?>">我的收货地址</a></li>
			 <li><a href="<?php echo U('Scores/index');?>">可评论的商品</a></li>
			<li><a href="<?php echo U('Admins/mod');?>">密码修改<span class="sr-only">(current)</span></a></li>
          </ul>          
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
	<h1 class="page-header">评价商品--<?php echo ($data['gname']); ?></h1>
	<table id="metable" class='table table-striped'>
	<form action="<?php echo U('add');?>" method="post">
	<input type="hidden" name="gid" value="<?php echo ($data['gid']); ?>">
	<input type="hidden" name="gname" value="<?php echo ($data['gname']); ?>">
	<input type="hidden" name="uid" value="<?php echo ($_SESSION['user']['id']); ?>">
	<input type="hidden" name="uname" value="<?php echo ($_SESSION['user']['name']); ?>">
	<input type="hidden" name="dingid" value="<?php echo ($data['id']); ?>">
	
		<textarea name='content' class='form-control' rows='3' cols='20'
						placeholder='在这里发表评论'></textarea>
		<div id='fbutton' required='required'>
		评分<select name='star'>
			<option value='1'>1</option>
			<option value='2'>2</option>
			<option value='3'>3</option>
			<option value='4' selected >4</option>
			<option value='5'>5</option>
			<option value='6'>6</option>
			<option value='7'>7</option>
			<option value='8'>8</option>
			<option value='9'>9</option>
			<option value='10'>10</option>
		</select>
		<input type='submit' name='fbsub' class='btn btn-primary' value='发表评论'>
		</div>
	</form>
	</table>
</div>
      </div>
    </div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script src="assets/js/bootstrap.min.js"></script>
    <!-- Just to make our placeholder images work. Don't actually copy the next line! -->
    <script src="assets/js/vendor/holder.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="assets/js/ie10-viewport-bug-workaround.js"></script>
  </body>
</html>